<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$siteTitle}</title>
<link href="__ADMIN__/statics/simpleboot/themes/flat/theme.min.css" rel="stylesheet">
<link href="__ADMIN__/statics/simpleboot/css/simplebootadmin.css" rel="stylesheet">
<link href="__ADMIN__/statics/simpleboot/font-awesome/4.2.0/css/font-awesome.min.css"  rel="stylesheet" type="text/css">
<!--[if IE 7]>
	<link rel="stylesheet" href="__ADMIN__/statics/simpleboot/font-awesome/4.2.0/css/font-awesome-ie7.min.css">
<![endif]-->
<link rel="stylesheet" href="__ADMIN__/statics/simpleboot/themes/flat/simplebootadminindex.min.css?">
<!--[if lte IE 8]>
	<link rel="stylesheet" href="__ADMIN__/statics/simpleboot/css/simplebootadminindex-ie.css?" />
<![endif]-->
<script language="JavaScript" src="__ADMIN__/js/jquery-1.9.1.min.js"></script>
<style>
.navbar .nav_shortcuts .btn{margin-top: 5px;}

/*-----------------导航hack--------------------*/
.nav-list>li.open{position: relative;}
.nav-list>li.open .back {display: none;}
.nav-list>li.open .normal {display: inline-block !important;}
.nav-list>li.open a {padding-left: 7px;}
.nav-list>li .submenu>li>a {background: #fff;}
.nav-list>li .submenu>li a>[class*="fa-"]:first-child{left:20px;}
.nav-list>li ul.submenu ul.submenu>li a>[class*="fa-"]:first-child{left:30px;}
/*----------------导航hack--------------------*/
</style>
</head>
<body style="min-height： 100%; overflow: hidden;" screen_capture_injected="true">

	<div class="navbar">
		<div class="navbar-inner">
			<div class="container-fluid">
				<a href="__ROOT__/index.php?g=admin&m=index&a=index" class="brand"> <small> 
				<img src="__ADMIN__/images/logo.png" title="系统首页" style="margin-top: -10px;margin-bottom: -10px;"/>
				</small>
				</a>
				<ul class="nav simplewind-nav pull-right">
					<li class="light-blue">
						<a data-toggle="dropdown" href="#" class="dropdown-toggle">
							<img class="nav-user-photo" src="__ADMIN__/statics/images/icon/logo-18.png" alt="{$admin.user_login}">
							<span class="user-info">
								<small>欢迎,</small>{$admin.username|default=$admin[user_login]}
							</span>
							<i class="fa fa-caret-down"></i>
						</a>
						<ul class="user-menu pull-right dropdown-menu dropdown-yellow dropdown-caret dropdown-closer">
							<if condition="sp_auth_check(sp_get_current_admin_id(),'admin/adminuser/password')">
								<li><a href="javascript:openapp('{:U('AdminUser/password')}','index_userinfo','修改密码');"><i class="fa fa-user"></i> 修改密码</a></li>
							</if>
							<li><a href="{:U('Public/logout')}"><i class="fa fa-sign-out"></i> 退出</a></li>
						</ul>
					</li>
				</ul>
			</div>
		</div>
	</div>

	<div class="main-container container-fluid">

		<div class="sidebar" id="sidebar">
			<!-- <div class="sidebar-shortcuts" id="sidebar-shortcuts">
			</div> -->
			<div id="nav_wraper">
				<ul class="nav nav-list">
					<li>
						<a href="#" class="dropdown-toggle">
							<i class="fa fa-{$menu:icon|default='desktop'} normal"></i>
							<span class="menu-text normal">系统管理</span>
							<b class="arrow fa fa-angle-right normal"></b>
							<i class="fa fa-reply back"></i>
							<span class="menu-text back">返回</span>
							
						</a>
						
						<ul  class="submenu">
							<li>
								<a href="javascript:openapp('{:U('/BeautyParlor/setZizhi')}','{$menu:id}','美容院信息');">
									<i class="fa fa-caret-right"></i>
									<span class="menu-text">美容院信息</span>
								</a>
							</li>
							<li>
								<a href="javascript:openapp('{:U('/Beautician/index')}','{$menu:id}','美容师管理');">
									<i class="fa fa-caret-right"></i>
									<span class="menu-text">美容院信息</span>
								</a>
							</li>
						</ul>
					</li>
				</ul>
			</div>
			
		</div>

		<div class="main-content">
			<div class="page-content" id="content" style="overflow: hidden;">
				<iframe src="{:U('detail')}" name="rightFrame" id="rightFrame" title="rightFrame" style="width:100%;height: 100%;" frameborder="0"></iframe>
			</div>
		</div>
	</div>
	<script src="__ROOT__/statics/simpleboot/bootstrap/js/bootstrap.min.js"></script>
	<script>
	var ismenumin = $("#sidebar").hasClass("menu-min");
	$(".nav-list").on( "click",function(event) {
		var closest_a = $(event.target).closest("a");
		if (!closest_a || closest_a.length == 0) {
			return
		}
		if (!closest_a.hasClass("dropdown-toggle")) {
			if (ismenumin && "click" == "tap" && closest_a.get(0).parentNode.parentNode == this) {
				var closest_a_menu_text = closest_a.find(".menu-text").get(0);
				if (event.target != closest_a_menu_text && !$.contains(closest_a_menu_text, event.target)) {
					return false
				}
			}
			return
		}
		var closest_a_next = closest_a.next().get(0);
		if (!$(closest_a_next).is(":visible")) {
			var closest_ul = $(closest_a_next.parentNode).closest("ul");
			if (ismenumin && closest_ul.hasClass("nav-list")) {
				return
			}
			closest_ul.find("> .open > .submenu").each(function() {
						if (this != closest_a_next && !$(this.parentNode).hasClass("active")) {
							$(this).slideUp(150).parent().removeClass("open")
						}
			});
		}
		if (ismenumin && $(closest_a_next.parentNode.parentNode).hasClass("nav-list")) {
			return false;
		}
		$(closest_a_next).slideToggle(150).parent().toggleClass("open");
		return false;
	});
	function openapp(url, appid, appname, selectObj) {
		$("#rightFrame").attr('src', url);
	}
	function resizeEvent() {
		$("#nav_wraper").height($(window).height() - $('.navbar').height()).css('overflow', 'auto');
		$("#content").height($(window).height() - $('.navbar').height()).css('overflow', 'auto');
	}
	
	$(function () {
		resizeEvent();
		$(window).resize(function () {
			resizeEvent();
		});
		
		$('.light-blue').click(function () {
			$(this).toggleClass("open");
		});
	})
	</script>
</body>
</html>